#include "Model.h"
#include "StdAfx.h"

#define LPT_FONT_WIDTH 32
#define LPT_FONT_HEIGHT (LPT_FONT_WIDTH*2)
 
bool LPRFontGet(char character,int x,int y)
{
      static const int mask[][LPT_FONT_WIDTH*LPT_FONT_HEIGHT/(sizeof(int)*8)]=
      {
           {0x0003c000,0x001ff800,0x007fff00,0x01ffffc0,0x03ffffe0,0x07fffff0,0x0ffffff8,0x1ffffff8,
           0x3ffc1ffc,0x3ff007fc,0x7fc003fe,0x7fc003fe,0x7f8001fe,0x7f0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0x7f0001ff,0x7f8001fe,0x7f8003fe,0x7fc007fe,0x3fe00ffc,
           0x3ffc3ffc,0x1ffffff8,0x1ffffff0,0x0fffffe0,0x07ffffc0,0x03ffff80,0x00fffe00,0x001ff800},
           {0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff},
           {0x00010000,0x000fe000,0x007ffc00,0x00ffff00,0x03ffff00,0x07ffffc0,0x0fffffe0,0x1ffffff0,
           0x3ffffff0,0x7fe01ff8,0x7fc00ff8,0x7f8003fc,0x7f0001fc,0xff0001fc,0xfe0000fe,0xfe0000fe,
           0xfe0000f8,0xfe000000,0xfe000000,0xfe000000,0x7e000000,0x7f000000,0x7f000000,0x7f800000,
           0x3fc00000,0x3fc00000,0x1fe00000,0x1ff00000,0x0ff00000,0x07f80000,0x07fc0000,0x03fc0000,
           0x01ff0000,0x01ff0000,0x00ff0000,0x00ff8000,0x007fc000,0x003fc000,0x003fe000,0x001ff000,
           0x000ff000,0x0007f800,0x0003fe00,0x0003fe00,0x0001ff00,0x0000ff00,0x0000ff80,0x00007f80,
           0x00007fc0,0x00003fe0,0x00001ff0,0x00001ff0,0x00000ff8,0x000007fc,0x000003fe,0x000001fe,
           0x03bfffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff},
           {0x3ffffffe,0x3ffffffe,0x3ffffffe,0x3ffffffe,0x3ffffffe,0x3ffffffe,0x3ffffffe,0x3ffffffe,
           0x1ff00000,0x1ff80000,0x0ff80000,0x07fc0000,0x07fe0000,0x03fe0000,0x01ff0000,0x01ff0000,
           0x007fc000,0x007fc000,0x003fe000,0x001ff000,0x001ff000,0x000ff800,0x0007fc00,0x0007fe00,
           0x001ffe00,0x007fff00,0x01ffff80,0x03ffff00,0x07fffe00,0x0ffffc00,0x1ffff000,0x1ff80000,
           0x3fe00000,0x3fc00000,0x7f800000,0x7f800000,0x7f000000,0x7f000000,0x7f000000,0x7f000000,
           0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000078,0x7e00007f,
           0x7f0000ff,0x7f0000ff,0x7f0001fe,0x7f8001fe,0x7f8001fe,0x3fc003fe,0x3fc007fc,0x3fe00ffc,
           0x1ffc7ff8,0x1ffffff0,0x0ffffff0,0x07ffffe0,0x03ffffc0,0x01ffff80,0x00fffe00,0x000fe000},
           {0x0fe00000,0x0fe00000,0x0ff00000,0x0ff00000,0x0ff80000,0x0ff80000,0x0ff80000,0x0ffc0000,
           0x0ffc0000,0x0ffe0000,0x0ffe0000,0x0fff0000,0x0fff0000,0x0fff8000,0x0fff8000,0x0fffc000,
           0x0fffc000,0x0fffc000,0x0fffe000,0x0fffe000,0x0fffe000,0x0ffff000,0x0ff7f000,0x0ff7f800,
           0x0ff7f800,0x0ff3fc00,0x0ff3fc00,0x0ff1fe00,0x0ff1fe00,0x0ff1fe00,0x0ff0ff00,0x0ff07f00,
           0x0ff07f80,0x0ff03f80,0x0ff03f80,0x0ff01fc0,0x0ff01fc0,0x0ff01fe0,0x0ff01fe0,0x0ff00ff0,
           0x0ff00ff0,0x0ff007f8,0x0ff003fc,0x0ff003fc,0x0ff001fc,0x0ff001fe,0x7ffffffe,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0x0ff00000,0x0ff00000,0x0ff00000,
           0x0ff00000,0x0ff00000,0x0ff00000,0x0ff00000,0x0ff00000,0x0ff00000,0x0ff00000,0x0ff00000},
           {0x7ffffffe,0x7ffffffe,0x7ffffffe,0x7ffffffe,0x7ffffffe,0x7ffffffe,0x7ffffffe,0x7ffffffe,
           0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x000001fe,
           0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x000001fe,0x0003c1fe,
           0x003ff9fe,0x00fffffe,0x01fffffe,0x03fffffe,0x07fffffe,0x0ffffffe,0x1ffffffe,0x1ff81ffe,
           0x3fc007fc,0x7fc001e0,0x7f800000,0x7f000000,0x7f000000,0x7f000000,0x7e000000,0x7e000000,
           0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0x7e000000,0x7e000070,0x7e00007f,
           0x7f00007f,0x7f0000ff,0x7f0000fe,0x7f0000fe,0x7f8001fe,0x7f8001fe,0x3fc003fc,0x3fe007fc,
           0x1ff81ff8,0x1ffffff8,0x0ffffff0,0x07ffffe0,0x07ffffc0,0x01ffff80,0x00fffe00,0x000fc000},
           {0x00000000,0x00700000,0x00f80000,0x03fc0000,0x07fe0000,0x03ff0000,0x01ff8000,0x00ff8000,
           0x007fc000,0x003fe000,0x003ff000,0x001ff800,0x000ff800,0x0007fc00,0x0003fc00,0x0003fe00,
           0x0001ff00,0x0000ff00,0x0000ff80,0x00007f80,0x00007fc0,0x00003fc0,0x00003fc0,0x00001fe0,
           0x00001fe0,0x00000fe0,0x00000ff0,0x000007f0,0x000f87f8,0x007ffff8,0x00fffff8,0x01fffffc,
           0x07fffffc,0x0ffffffc,0x0ffffffc,0x1ffffffc,0x3ff83ffe,0x3fe007fe,0x7f8003fe,0x7f0001ff,
           0x7f0001ff,0x7f0000ff,0x7e0000ff,0x7e0000ff,0x7e0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0x7f0000ff,0x7f0000fe,0x7f0000fe,0x7f0001fe,0x7f8003fc,0x7fc003fc,0x3fe007fc,0x3ff83ff8,
           0x1ffffff0,0x0ffffff0,0x0fffffe0,0x07ffffc0,0x03ffff80,0x00ffff00,0x00fffc00,0x001fe000},
           {0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xff000000,0x7f000000,0x7f800000,0x7f800000,0x3fc00000,0x3fc00000,0x3fe00000,0x1fe00000,
           0x1ff00000,0x0ff00000,0x0ff00000,0x0ff00000,0x07f80000,0x07f80000,0x07fc0000,0x03fc0000,
           0x03fc0000,0x03fc0000,0x01fe0000,0x01fe0000,0x01fe0000,0x01fe0000,0x00ff0000,0x00ff0000,
           0x00ff0000,0x00ff0000,0x00ff0000,0x00ff0000,0x007f0000,0x007f0000,0x007f8000,0x007f8000,
           0x007f8000,0x003f8000,0x003f8000,0x003f8000,0x003f8000,0x003fc000,0x003fc000,0x003fc000,
           0x001fc000,0x001fc000,0x001fc000,0x001fc000,0x001fc000,0x001fc000,0x001fe000,0x001fe000,
           0x001fe000,0x001fe000,0x001fe000,0x001fe000,0x001fe000,0x001fe000,0x001fe000,0x000fe000},
           {0x0007e000,0x001ff800,0x007ffe00,0x01ffff00,0x03ffffc0,0x07ffffc0,0x0fffffe0,0x1ffffff0,
           0x1ff83ff8,0x1ff01ff8,0x3fe00ff8,0x3fc007fc,0x7f8003fc,0x7f8003fc,0x7f0001fc,0x7f0001fe,
           0x7f0001fe,0x7f0001fe,0x7f0001fe,0x7f0001fe,0x7f0001fe,0x7f8003fc,0x7f8003fc,0x3f8007fc,
           0x3fc007fc,0x3fe00ff8,0x1ff01ff8,0x0ffffff0,0x0fffffe0,0x07ffffc0,0x03ffffc0,0x07ffffe0,
           0x0ffffff0,0x1ffffff8,0x1ffffff8,0x3ff83ffc,0x3fe00ffc,0x7fe007fc,0x7fc003fe,0x7f8003fe,
           0x7f8001fe,0x7f0001ff,0x7f0000ff,0xff0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0001ff,0x7f8001fe,0x7f8003fe,0x3fc007fe,0x3fe007fe,0x3ff01ffc,
           0x1ffefffc,0x1ffffff8,0x0ffffff0,0x07fffff0,0x03ffffe0,0x01ffff80,0x007fff00,0x001ff800},
           {0x0003e000,0x000ffc00,0x007fff00,0x01ffff80,0x03ffffc0,0x07ffffe0,0x0ffffff0,0x0ffffff8,
           0x1ffc1ff8,0x3ff80ffc,0x3fe007fc,0x7fc001fc,0x7f8001fe,0x7f0000fe,0x7f0000fe,0x7f0000ff,
           0x7e00007f,0xfe00007f,0xfe00007f,0xfe00007f,0x7e00007f,0x7e00007f,0x7f0000ff,0x7f0000fe,
           0x7f0000fe,0x7f8001fe,0x7fc003fc,0x7ff007fc,0x7ff80ff8,0x7ffe7ff8,0x7ffffff0,0x7fffffe0,
           0x3fffffc0,0x3fffff80,0x3fffff80,0x3ffffe00,0x1fe7f800,0x1fe00000,0x0ff00000,0x0ff00000,
           0x0ff80000,0x07f80000,0x07f80000,0x07fc0000,0x03fc0000,0x03fe0000,0x01fe0000,0x01ff0000,
           0x00ff8000,0x00ffc000,0x007fe000,0x003fe000,0x001ff000,0x000ff800,0x000ffc00,0x0007fe00,
           0x0007fe00,0x0003ff00,0x0001ff80,0x0000ffc0,0x00007fe0,0x00003f80,0x00001f00,0x00000c00},
           {0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x001ff800,0x001ff800,0x001ff800,
           0x001ff800,0x001ff800,0x003ffc00,0x003ffc00,0x003ffc00,0x003ffc00,0x003ffc00,0x007ffc00,
           0x007ffe00,0x007ffe00,0x007ffe00,0x007ffe00,0x00ffff00,0x00ffff00,0x00fe7f00,0x00fe7f00,
           0x01fe7f00,0x01fe7f00,0x01fe7f80,0x01fc7f80,0x01fc3f80,0x01fc3f80,0x01fc3f80,0x01fc3f80,
           0x03f83f80,0x03f81fc0,0x03f81fc0,0x03f81fc0,0x03f81fc0,0x07f81fc0,0x07f81fc0,0x07f01fe0,
           0x07f01fe0,0x0ff00fe0,0x0ff00fe0,0x0ff00ff0,0x0ff00ff0,0x0fe007f0,0x1ffffff0,0x1ffffff0,
           0x1ffffff0,0x1ffffff8,0x1ffffff8,0x3ffffff8,0x3ffffff8,0x3ffffffc,0x3fc003fc,0x7f8003fc,
           0x7f8003fc,0x7f8001fc,0x7f8001fc,0x7f0001fe,0x7f0001fe,0x7f0001fe,0x7f0000ff,0x0000000f},
           {0x00001fff,0x0007ffff,0x007fffff,0x00ffffff,0x03ffffff,0x07ffffff,0x0fffffff,0x1fffffff,
           0x3fffffff,0x3ff000ff,0x7fe000ff,0x7fc000ff,0x7f8000ff,0x7f0000ff,0x7e0000ff,0x7e0000ff,
           0xfe0000ff,0xfe0000ff,0x7e0000ff,0x7e0000ff,0x7f0000ff,0x7f0000ff,0x7f8000ff,0x7fc000ff,
           0x3fe000ff,0x3ff800ff,0x1fffffff,0x0fffffff,0x07ffffff,0x07ffffff,0x0fffffff,0x1fffffff,
           0x1fffffff,0x3ff800ff,0x3fe000ff,0x3fc000ff,0x7f8000ff,0x7f8000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7e0000ff,0x7e0000ff,0x7e0000ff,0x7e0000ff,0x7e0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f8000ff,0x7fc000ff,0x3fe000ff,0x3ff000ff,
           0x1fff00ff,0x1fffffff,0x07ffffff,0x07ffffff,0x01ffffff,0x00ffffff,0x003fffff,0x0000ffff},
           {0x0007e000,0x001ff800,0x00ffff00,0x01ffff80,0x07ffffe0,0x07ffffe0,0x1ffffff0,0x1ffffff8,
           0x3ff83ffc,0x3fe00ffc,0x7fc003fe,0x7f8003fe,0x7f8001fe,0x7f0000ff,0x7f0000ff,0xff00007f,
           0xfe00007f,0xfe00007f,0x0000007f,0x0000007f,0x0000007f,0x0000007f,0x0000007f,0x0000007f,
           0x0000007f,0x0000007f,0x0000007f,0x0000007f,0x0000007f,0x0000007f,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0xff0000ff,0xff0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0x7e0000ff,0x7f0000ff,0x7f0001fe,0x7f8001fe,0x7f8003fe,0x7fc007fc,0x3ff00ffc,
           0x3ffe3ff8,0x1ffffff8,0x0ffffff0,0x07ffffe0,0x03ffffc0,0x01ffff80,0x007ffc00,0x00078000},
           {0x000fffff,0x007fffff,0x00ffffff,0x03ffffff,0x07ffffff,0x0fffffff,0x1fffffff,0x3fffffff,
           0x3ff000ff,0x7fe000ff,0x7fc000ff,0x7f8000ff,0x7f0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f8000ff,0x7fc000ff,0x3fe000ff,0x3ff000ff,
           0x1ffe00ff,0x1fffffff,0x0fffffff,0x07ffffff,0x03ffffff,0x00ffffff,0x003fffff,0x0003ffff},
           {0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x0fffffff,0x0fffffff,0x0fffffff,0x0fffffff,0x0fffffff,
           0x0fffffff,0x0fffffff,0x07ffffff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffffffe},
           {0x7fffffff,0xffffffff,0x7fffffff,0xffffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x0fffffff,0x0fffffff,0x0fffffff,0x0fffffff,
           0x0fffffff,0x0fffffff,0x0fffffff,0x01ffffff,0x000000ff,0x000000ff,0x000000ff,0x000000fe,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000fe},
           {0x00010000,0x000fe000,0x007ffe00,0x01ffff00,0x03ffffc0,0x07ffffe0,0x0ffffff0,0x1ffffff8,
           0x3ff83ff8,0x3ff00ffc,0x7fc007fc,0x7f8003fe,0x7f8001fe,0x7f0000fe,0x7e0000ff,0x7e0000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0xffffc0ff,0xffffc0ff,0xffffc0ff,0xffffc0ff,0xffffc0ff,0xffffc0ff,
           0xffffc0ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xff0000fe,0x7f0001fe,0x7f8003fe,0x7f8003fc,0x7fe00ffc,
           0x3ff81ff8,0x1ffffff8,0x1ffffff0,0x0fffffe0,0x07ffffc0,0x03ffff80,0x00fffe00,0x0007e000},
           {0x7f0000fe,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0x7e0000ff},
           {0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0xffffffff,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,
           0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,
           0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,
           0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,
           0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,
           0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0x00fffe00,0xffffffff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff},
           {0x7e000000,0x7e000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,
           0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,
           0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,
           0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,
           0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,
           0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,0xfe000000,
           0xfe0000fe,0x7f0000fe,0x7f0001fe,0x7f0001fe,0x7f8001fe,0x7fc003fc,0x7fc007fc,0x3fe00ff8,
           0x3ffc7ff8,0x1ffffff0,0x0fffffe0,0x0fffffe0,0x03ffff80,0x01ffff00,0x007ffc00,0x0007c000},
           {0x000000fe,0xff8000fe,0x7f8000fe,0x7f8000fe,0x7fc000fe,0x3fc000fe,0x3fe000fe,0x1ff000fe,
           0x0ff000fe,0x0ff800fe,0x07f800fe,0x07fc00fe,0x03fc00fe,0x01fe00fe,0x01ff00fe,0x00ff00fe,
           0x00ff00fe,0x007f80fe,0x007f80fe,0x003fc0fe,0x003fc0fe,0x001fe0fe,0x003ff0fe,0x003ff0fe,
           0x003ff0fe,0x003ff8fe,0x007ffcfe,0x007ffcfe,0x007ffefe,0x007ffffe,0x00fffffe,0x00fffffe,
           0x00fefffe,0x00fe7ffe,0x01fe7ffe,0x01fe3ffe,0x01fc3ffe,0x01fc1ffe,0x03fc0ffe,0x03fc0ffe,
           0x03f807fe,0x07f803fe,0x07f803fe,0x07f801fe,0x07f001fe,0x07f000fe,0x0ff000fe,0x0fe000fe,
           0x0fe000fe,0x1fe000fe,0x1fe000fe,0x1fc000fe,0x1fc000fe,0x3fc000fe,0x3fc000fe,0x3f8000fe,
           0x3f8000fe,0x3f8000ff,0x7f8000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7e0000ff,0x000000fe},
           {0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffffffe},
           {0xfe0000fe,0xff0000fe,0xff0001ff,0xff8001ff,0xff8003ff,0xffc003ff,0xffc007ff,0xffe007ff,
           0xffe00fff,0xffe00fff,0xfff01fff,0xfff81fff,0xfff83fff,0xfffc3fff,0xfffc7fff,0xfffe7fff,
           0xffffffff,0xfefffeff,0xfefffcff,0xfe7ffcff,0xfe3ffcff,0xfe3ff8ff,0xfe1ff8ff,0xfe1ff0ff,
           0xfe1ff0ff,0xfe0fe0ff,0xfe0fe0ff,0xfe07c0ff,0xfe03c0ff,0xfe0380ff,0xfe0180ff,0xfe0100ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,
           0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000fe},
           {0x3e00007d,0xfe0000ff,0xfe0000ff,0xfe0001ff,0xfe0001ff,0xfe0003ff,0xff0003ff,0xff0007ff,
           0xff0007ff,0xff000fff,0xff000fff,0xff000fff,0xff001fff,0xff001fff,0xff003fff,0xff003fff,
           0xff003fff,0xff007fff,0xff007fff,0xff00ffff,0xff00ffff,0xff00ffff,0xff01feff,0xff01feff,
           0xff01fcff,0xff03fcff,0xff03fcff,0xff07f8ff,0xff07f8ff,0xff0ff0ff,0xff0ff0ff,0xff0ff0ff,
           0xff1ff0ff,0xff1fe0ff,0xff3fe0ff,0xff3fc0ff,0xff3fc0ff,0xff7fc0ff,0xff7f807f,0xff7f807f,
           0xffff007f,0xffff007f,0xffff007f,0xffff007f,0xfffe007f,0xfffe007f,0xfffc007f,0xfffc007f,
           0xfffc007f,0xfff8007f,0xfff8007f,0xfff0007f,0xfff0007f,0xfff0007f,0xffe0007f,0xffe0007f,
           0xffc0007f,0xffc0007f,0xffc0007f,0xff80007f,0xff80007f,0xff80007f,0xff00007f,0x78000000},
           {0x0003e000,0x001ffc00,0x007fff00,0x01ffff80,0x03ffffe0,0x07fffff0,0x0ffffff0,0x1ffffff8,
           0x1ff80ffc,0x3fe007fc,0x3fc003fe,0x7f8001fe,0x7f8001fe,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,0xff0000ff,
           0xff0000ff,0xff0000ff,0x7f0000ff,0x7f0001fe,0x7f8001fe,0x7fc003fe,0x7fe007fc,0x3ff00ffc,
           0x1fff7ff8,0x1ffffff8,0x0ffffff0,0x07ffffe0,0x03ffffc0,0x01ffff80,0x007ffe00,0x0007e000},
           {0x0003ffff,0x003fffff,0x00ffffff,0x03ffffff,0x07ffffff,0x0fffffff,0x1fffffff,0x1fffffff,
           0x3ff800ff,0x7fe000ff,0x7fc000ff,0x7f8000ff,0x7f0000ff,0x7f0000ff,0x7e0000ff,0x7e0000ff,
           0x7e0000ff,0x7e0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0xfe0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f8000ff,0x7fc000ff,0x7fe000ff,0x3ff800ff,0x1fffffff,0x0fffffff,0x07ffffff,
           0x03ffffff,0x01ffffff,0x007fffff,0x000fffff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,
           0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff,0x000000ff},
           {0x0003e000,0x001ffc00,0x007fff00,0x01ffff80,0x03ffffc0,0x07ffffe0,0x0ffffff0,0x1ffffff8,
           0x1ff81ffc,0x3fe007fc,0x3fc003fc,0x7f8001fe,0x7f8000fe,0x7f0000fe,0x7f0000fe,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,
           0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000ff,0x7f0000fe,0x7f0000fe,0x7f0000fe,0x7f0000fe,
           0x7f0000fe,0x7f0000fe,0x7f0000fe,0x7f0000fe,0x7f0000fe,0x7f0000fe,0x7f0000fe,0x7f0000fe,
           0x7f07f8fe,0x7f07f0fe,0x7f0ff0fe,0x7f1fe0fe,0x7f1fe0fe,0x7f1fc0fe,0x7f3f80fe,0xff7f80fe,
           0xff7f80fe,0xff7f00fe,0x7fff00fe,0x7fff00fe,0x7ffe01fe,0x7ffe03fc,0x7ffc07fc,0x3ff80ffc,
           0x3ff83ff8,0x1ffffff0,0x1ffffff0,0x1fffffe0,0x3fffff80,0x7fffff00,0x7ffffe00,0x00038000},
           {0x0000fff8,0x001fffff,0x007fffff,0x01ffffff,0x03ffffff,0x07ffffff,0x0fffffff,0x1fffffff,
           0x1ffc007f,0x3fe0007f,0x3fe0007f,0x7fc0007f,0x7f80007f,0x7f80007f,0x7f00007f,0x7f00007f,
           0x7f00007f,0x7f00007f,0xff00007f,0xff00007f,0xff00007f,0xff00007f,0xff00007f,0x7f00007f,
           0x7f80007f,0x7f80007f,0x7fc0007f,0x7fe0007f,0x3ff8007f,0x1fffffff,0x1fffffff,0x0fffffff,
           0x07ffffff,0x01ffffff,0x007fffff,0x003fffff,0x003f80ff,0x007f80ff,0x007f80ff,0x007f00ff,
           0x00ff00ff,0x00fe00ff,0x00fe00ff,0x01fe00ff,0x01fc00ff,0x01fc00ff,0x03fc00ff,0x03f800ff,
           0x07f800ff,0x07f800ff,0x07f000ff,0x0ff000ff,0x0fe000ff,0x0fe000ff,0x1fe000ff,0x1fe000ff,
           0x1fe000ff,0x3fc000ff,0x3fc000ff,0x7f8000ff,0x7f8000ff,0x7f8000ff,0x7f0000ff,0xff0000ff},
           {0x0001c000,0x001ff800,0x003ffe00,0x00ffff80,0x01ffffc0,0x03ffffe0,0x07fffff0,0x07fffff8,
           0x0ffc1ff8,0x1ff007f8,0x1fe007fc,0x1fe003fc,0x3fc001fe,0x3fc001fe,0x3f8000fe,0x3f8000fe,
           0x3f8000fe,0x3f8000fe,0x000000fe,0x000000fe,0x000000fe,0x000000fe,0x000001fe,0x000001fe,
           0x000003fc,0x000007fc,0x00001ff8,0x0003fff8,0x003ffff0,0x00ffffe0,0x01ffffc0,0x07ffff80,
           0x0ffffe00,0x1ffff000,0x1ffc0000,0x3ff00000,0x3fe00000,0x7fc00000,0x7f800000,0x7f000000,
           0x7f000000,0x7f000000,0x7f000000,0x7f000000,0x7f000000,0xff000000,0xff000000,0x7f000000,
           0x7f0000ff,0x7f0000ff,0x7f0001ff,0x7f8001fe,0x7fc003fe,0x3fc003fe,0x3fe007fe,0x1ff01ffc,
           0x1ffffff8,0x0ffffff8,0x07fffff0,0x07ffffe0,0x01ffffc0,0x00ffff80,0x007fff00,0x0003e000},
           {0x001fffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
           0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,
           0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,
           0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,
           0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,
           0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,
           0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,
           0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000,0x000ff000},
           {0x7f000000,0xff0000ff,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,
           0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,
           0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,
           0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,
           0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,
           0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,0xff0000fe,
           0xff0000fe,0xff0000fe,0xff0000fe,0x7f0000fe,0x7f0001fe,0x7f8003fc,0x7f8003fc,0x3fe007f8,
           0x3ff01ff8,0x1ffffff0,0x1ffffff0,0x0fffffe0,0x07ffffc0,0x03ffff00,0x00fffe00,0x001fe000},
           {0x000000fe,0xfe0000ff,0xfe0001fe,0x7f0001fe,0x7f0001fe,0x7f0001fe,0x7f0001fe,0x7f8001fe,
           0x7f8003fc,0x7f8003fc,0x7f8003fc,0x3fc003fc,0x3fc003fc,0x3fc003f8,0x3fc007f8,0x1fc007f8,
           0x1fe007f8,0x1fe007f8,0x1fe007f8,0x1fe00ff0,0x0ff00ff0,0x0ff00ff0,0x0ff00ff0,0x0ff00ff0,
           0x07f00fe0,0x07f81fe0,0x07f81fe0,0x07f81fe0,0x07f81fe0,0x07fc1fe0,0x03fc3fc0,0x03fc3fc0,
           0x03fc3fc0,0x01fc3fc0,0x01fe3fc0,0x01fe3f80,0x01fe7f80,0x01fe7f80,0x00ff7f80,0x00ff7f80,
           0x00ff7f80,0x00ffff00,0x00ffff00,0x007fff00,0x007fff00,0x007fff00,0x007ffe00,0x003ffe00,
           0x003ffe00,0x003ffe00,0x003ffe00,0x003ffe00,0x001ffc00,0x001ffc00,0x001ffc00,0x001ffc00,
           0x000ffc00,0x000ffc00,0x000ff800,0x000ff800,0x000ff800,0x0007f800,0x0007f800,0x0007f000},
           {0xfe0000ff,0xfe0100ff,0xfe0100fe,0xfe0100fe,0xfe0180fe,0xff0380fe,0xff0381fe,0xff0381fe,
           0xff0781fe,0x7f07c1fe,0x7f07c1fe,0x7f07c1fe,0x7f07c1fe,0x7f0fc1fe,0x7f0fe1fe,0x7f0fe1fc,
           0x7f0fe1fc,0x7f1fe1fc,0x7f1ff1fc,0x7f1ff1fc,0x7f1ff1fc,0x7f1ff3fc,0x7f1ffbfc,0x7f9ffbfc,
           0x7fbffbfc,0x7fbffbfc,0x7fbffbfc,0x7fbffbfc,0x7ffffbfc,0x7ffffffc,0x7ffffffc,0x7ffffffc,
           0x3ffffffc,0x3ffffff8,0x3ffffff8,0x3ffffff8,0x3ffffff8,0x3ffffff8,0x3ffffff8,0x3ffefff8,
           0x3ffefff8,0x3ffcfff8,0x3ffcfff8,0x3ffc7ff8,0x3ffc7ff8,0x3ffc7ff8,0x3ff87ff0,0x3ff87ff0,
           0x3ff83ff0,0x3ff83ff0,0x3ff83ff0,0x1ff03ff0,0x1ff01ff0,0x1ff01ff0,0x1ff01ff0,0x1ff01ff0,
           0x1fe01ff0,0x1fe00ff0,0x1fe00ff0,0x1fe00ff0,0x1fe00ff0,0x1fe007f0,0x1fe007f0,0x1fc007f0},
           {0xfe0000fe,0x7f0001fe,0x7f0001fe,0x7f0003fc,0x7f8003fc,0x7f8003fc,0x3fc007f8,0x3fc007f8,
           0x1fc007f8,0x1fe007f0,0x1fe00ff0,0x0fe00fe0,0x0ff01fe0,0x07f01fe0,0x07f01fc0,0x07f83fc0,
           0x03f83fc0,0x03fc3f80,0x03fc7f80,0x01fc7f00,0x01feff00,0x00fefe00,0x00fffe00,0x00fffe00,
           0x007ffc00,0x007ffc00,0x003ffc00,0x003ff800,0x003ff800,0x001ff800,0x001ff800,0x001ff000,
           0x001ff000,0x001ff000,0x001ff000,0x001ff000,0x003ff800,0x003ff800,0x003ff800,0x007ffc00,
           0x007ffc00,0x007ffc00,0x00fffe00,0x00fefe00,0x01feff00,0x01fc7f00,0x03fc7f80,0x03fc3f80,
           0x03f83fc0,0x07f81fc0,0x07f81fc0,0x0ff01fe0,0x0ff00fe0,0x0fe00ff0,0x1fe007f0,0x1fe007f0,
           0x1fc007f8,0x3fc007f8,0x3fc003fc,0x7fc003fc,0x7f8001fe,0x7f0001fe,0x7f0001fe,0xff0000ff},
           {0xff0000ff,0x7f8001ff,0x7f8001fe,0x7f8003fe,0x3fc003fc,0x3fc007fc,0x3fe007f8,0x1fe00ff8,
           0x1fe00ff0,0x0ff01ff0,0x0ff01fe0,0x0ff83fe0,0x07f83fc0,0x07fc7fc0,0x03fc7fc0,0x03fcff80,
           0x03feff80,0x01feff00,0x01ffff00,0x00fffe00,0x00fffe00,0x007ffc00,0x007ffc00,0x007ff800,
           0x003ff800,0x003ff000,0x001ff000,0x001fe000,0x001fe000,0x000fe000,0x000fe000,0x000fe000,
           0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,
           0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,
           0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,0x000fe000,
           0x000fe000,0x001fe000,0x001fe000,0x001fe000,0x001fe000,0x001fe000,0x001fe000,0x000fe000},
           {0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,0x7fffffff,
           0x3fc00000,0x3fc00000,0x1fe00000,0x1fe00000,0x1fe00000,0x0fe00000,0x07f00000,0x07f80000,
           0x07f80000,0x03f80000,0x03fc0000,0x01fc0000,0x01fe0000,0x00fe0000,0x007f0000,0x007f0000,
           0x007f8000,0x003f8000,0x003fc000,0x001fc000,0x001fe000,0x001fe000,0x000ff000,0x000ff000,
           0x0007f000,0x0007f800,0x0003f800,0x0003f800,0x0003fc00,0x0001fc00,0x0001fe00,0x0000fe00,
           0x0000ff00,0x00007f00,0x00007f80,0x00003f80,0x00003fc0,0x00001fc0,0x00001fe0,0x00000fe0,
           0x00000ff0,0x00000ff0,0x000007f8,0x000007f8,0x000007fc,0x000003fc,0x000003fc,0x000003fe,
           0x7ffffffe,0x7ffffffe,0x7ffffffe,0x7ffffffe,0xfffffffe,0xfffffffe,0xfffffffe,0xfffffffe},
      };
      int character_index;
      if(character>='0'&&character<='9')
           character_index=character-'0';
      else if(character>='a'&&character<='z')
           character_index=character-'a'+10;
      else if(character>='A'&&character<='Z')
           character_index=character-'A'+10;
      else
           return false;
      if(x<0)
           return false;
      if(x>=LPT_FONT_WIDTH)
           return false;
      if(y<0)
           return false;
      if(y>=LPT_FONT_HEIGHT)
           return false;
      int int_index;
      int_index=y*LPT_FONT_WIDTH+x;
      int bit_index;
      bit_index=int_index%(sizeof(int)*8);
      int_index/=(sizeof(int)*8);
      if(mask[character_index][int_index]&(1<<bit_index))
           return true;
      else
           return false;
}
